package com.freesky.common.dao.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.freesky.common.enums.PanelContentCategoryEnum;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("tb_panel_content")
public class PanelContent extends Model<PanelContent>{
    @TableId
    private Integer id;

    private Integer panelId;
    private PanelContentCategoryEnum type;

    //关联商品id
    private String itemId;

    private Integer sortOrder;

    private String relateUrl;

    private String picUrl;

    private String createTime;

    private String updateTime;

    @Override
    protected Serializable pkVal() {
        return id;
    }

    /**
     * 关联商品信息
     */
    @TableField(exist = false)
    private BigDecimal salePrice;
    @TableField(exist = false)
    private String itemName;
    @TableField(exist = false)
    private String subTitle;
    @TableField(exist = false)
    private String itemImageBig;

}
